<template>
	<view class="index">
		<sdc-navbar :title="title"></sdc-navbar>
	</view>
</template>

<script>
	export default {
		props: {
			addressItem: {
				type: Object,
				default: {}
			}
		},
		data() {
			return {
				title: ''
			};
		},
		mounted() {
			this.$nextTick(()=>{
				if(this.addressItem.hasOwnProperty('id'))
					this.title = '编辑收货地址'
				else
					this.title = '添加收货地址'
			})
		}
	}
</script>

<style lang="scss" scoped>
	.index{
		
	}
</style>
